<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="sample.User" %>
<%@ page import="java.util.List" %>
<%
List<User> users = (List<User>) request.getAttribute("users");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Google Wave - Wave List / Ad Unit robot</title>
</head>
<body>
  List of current participants
  <table>
  <%for(User user : users) {%>
    <tr>
      <td><%=user.getUsername() %></td>
      <td><%=user.getDate() %></td>
      <td><a href="delete?username=<%=user.getUsername()%>">Delete</a></td>
    </tr>
  <%} %>
  </table>
  <form action="add">
    Add an address: <input name="username" type="text" value="alecmgo@wavesandbox.com"/>
    <input value="Enter" type="submit"/>
  </form>
</body>
</html>